﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Win32Wrapper.Win32
{
    public struct _WindowPlacement
    {
        public uint length;
        public uint flags;
        public uint showCmd;
        public _Point ptMinPosition;
        public _Point ptMaxPosition;
        public _Rect rcNormalPosition;
    }

    public class WindowPlacement
    {
        public WindowPlacement() { }
        public WindowPlacement(_WindowPlacement place)
        {
            length = place.length;
            flags = (WindowPlacementFlags)place.flags;
            showCmd = (ShowCommands)place.showCmd;
            ptMinPosition = new Point(place.ptMinPosition);
            ptMaxPosition = new Point(place.ptMaxPosition);
            rcNormalPosition = new Rect(place.rcNormalPosition);
        }

        public uint length { get; set; }
        public WindowPlacementFlags flags { get; set; }
        public ShowCommands showCmd { get; set; }
        public Point ptMinPosition { get; set; }
        public Point ptMaxPosition { get; set; }
        public Rect rcNormalPosition { get; set; }
    }
}
